<%@ Page language="C#" DynamicMasterPageFile="~masterurl/custom.master"      Inherits="Microsoft.SharePoint.Portal.WebControls.PersonalAdminPage,Microsoft.SharePoint.Portal,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="OSRVUPWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Register TagPrefix="Square" TagName="Sq_People" src="~/_controltemplates/Square/People_List.ascx" %>
<%@ Register TagPrefix="Square" TagName="Sq_SideMenu" src="~/_controltemplates/Square/People_SideMenu.ascx" %>


<asp:Content ContentPlaceHolderID="PlaceHolderLeftNavBarDataSource" runat="server">
    <SPSWC:DataSourceReplacer runat="server" ControlID="PlaceHolderLeftNavBar/QuickLaunchNavigationManager/QuickLaunchMenu"> <SPSWC:MySiteDataSource runat="server" ShowStartingNode="False" SiteMapProvider="MySiteLeftNavProvider" /> </SPSWC:DataSourceReplacer> 
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderPageTitle" runat="server">
    <SPSWC:StringValue LocId="QuickLinks_PageTitleMyContacts_Text" runat="server" />
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
    <SPSWC:StringValue LocId="QuickLinks_PageTitleMyContacts_Text" runat="server" />
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderSiteName" runat="server">
	<SPSWC:PersonalSpaceMainHeading TitleMode="true" runat="server" />
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderMain" runat="server">

<div class="s4-notdlg noindex">
    <a href="javascript:;" onclick="javascript:this.href='#SkipContactCard';" class="ms-SkiptoMainContent" runat="server">
      <SPSWC:StringValueEx ResourceFile="spscore" LocId="SkipContactCard_Text" runat="server" />
    </a>
</div>
<SPSWC:ProfilePropertyLoader id="m_objLoader" LoadFullProfileOfCurrentUser="true" runat="server" />
<div class="ms-profilepageheader">
<table border="0" cellpadding="3" cellspacing="0" ID="ZoneTable" width="100%" class="ms-tztable">
                        <!-- business card zone -->
                        <tr><td colspan=3 width="100%" style="padding:24px">
			    <table class="ms-contactcardtext3" cellspacing=0 cellpadding=0 width="100%">
			        <tr>
                                    <td width="150" valign="top">
                                         <div class="ms-contactcardtext3" style=""width:100%;">
                         		    <SPSWC:LocalTimeControl runat="server" />
                                         </div>
					 <div class="ms-profilepicture ms-contactcardpicture ms-largethumbnailimage">
					    <SPSWC:ProfilePropertyImage PropertyName="PictureUrl" RenderWrapTable="False" ShowPlaceholder="true" id="PictureUrlImage" ImageSize="Large" CenterVertically="true" runat="server"/>	
					 </div>  
                                         <div class="ms-contactcardtext3" style="width:100%;">
	                		     <div><SPSWC:EditProfileButton runat="server" id="ddlEditProfile" /></div>
                                             <div><SPSWC:AddToColleaguesButton runat="server" id="TBBAddtoColleagues" class="ms-my-addcolleague"/></div>
					 </div>                    
                                    </td>
                                    <td valign="top" width="320">
                                         <div style="min-height:175px">
                                         <div class="ms-contactcardtext2 ms-identitypiecenotediv">
	                		    <SPSWC:StatusNotesControl runat="server"/>
				         </div>                                                                 
					 <div style="padding-top: 50px;vertical-align:top;" class="ms-name ms-contactcardtext1" id="ProfileViewer_Name">										
					    <SPSWC:PersonalSpaceMainHeading TitleMode="false" runat="server"/>
			          	 </div>
					 <div style="padding-left: 20px;" class="ms-contactcardtext3" id="ProfileViewer_ValueTitle">										
					    <SPSWC:ProfilePropertyValue PropertyName="Title" runat="server"/>
					 </div>
					 <div style="padding-left: 20px;" class="ms-contactcardtext3" id="ProfileViewer_ValueDept">								
					    <SPSWC:ProfilePropertyValue PropertyName="Department" runat="server"/>
				         </div>
					 <br/>
					 <div style="padding-left: 20px;" class="ms-contactcardtext3" id="ProfileViewer_ValueOfficePhone">
					    <SPSWC:ProfilePropertyValue PropertyName="WorkPhone" dir="ltr" runat="server"/>
					 </div>
                  			 <div style="padding-left: 20px;" class="ms-contactcardtext3" id="ProfileViewer_ValueOfficeLocation">
					    <SPSWC:ProfilePropertyValue PropertyName="Office" runat="server"/>
					    <SPSWC:ProfilePropertyCheckValue PropertyNames="Office,Location" runat="server" Text=", "/>
					    <SPSWC:ProfilePropertyValue PropertyName="SPS-Location" runat="server"/>
                  			 </div>
					 <div style="padding-left: 20px;" class="ms-contactcardtext3" id="ProfileViewer_ValueEmail">
					    <SPSWC:ProfilePropertyValue PropertyName="WorkEmail" runat="server" PrefixBrIfNotEmpty="true"/>
					 </div>
                                         <br/>
                                         <div style="padding-left: 20px;display:none;" class="ms-contactcardtext3" id="ProfileViewer_ProfileDetails" >
					     <SPSWC:ProfileDetailsViewer id="ProfileViewer" Collapsible="false" runat="server" />				                                                     
                                         </div> 
                                         </div> 
                                         <div style="padding-left: 20px;" class="ms-contactcardtext3">
					     <SPSWC:ContactCardDetailsLink AboutMeId="ProfileViewer_ValueAboutMe" ProfileDetailsId="ProfileViewer_ProfileDetails" EllipsisId="ProfileViewer_Ellipsis" runat="server" />				                                                     
                                         </div>                                      
				     </td>
                                     <td valign="top" width="418">                                                            
					 <div style="padding: 50px 5px 0px 15px; overflow:hidden; min-height: 142px; height: 142px;" class="ms-contactcardtext3" id="ProfileViewer_ValueAboutMe">
					   <SPSWC:ProfilePropertyValue PropertyName="AboutMe" runat="server" PrefixBrIfNotEmpty="false"/>
					 </div>
                                         <div style="padding-left: 15px;display:none" id="ProfileViewer_Ellipsis" class="ms-contactcardtext3"></div>                                         
                                     </td>
                                  </tr>                                                  
			    </table>						
		        </td></tr>
            </table>

<SharePoint:AspMenu
     ID="MySiteSubNavigationMenu"
     Runat="server"
     EnableViewState="false"
     DataSourceID="MySiteSubNavDS"
     AccessKey="<%$Resources:wss,navigation_accesskey%>"
     UseSimpleRendering="true"
     UseSeparateCss="false"
     Orientation="Horizontal"
     StaticDisplayLevels="1"
     MaximumDynamicDisplayLevels="0"
     PopOutImageUrl=""
     SkipLinkText=""
     CssClass="s4-sn">
  </SharePoint:AspMenu>
  <SPSWC:MySiteDataSource
     ShowStartingNode="False"
     SiteMapProvider="MySiteSubNavProvider"
     id="MySiteSubNavDS"  
     runat="server"/>

</div>

<a name="SkipContactCard" tabindex=0></a>

<script type='text/javascript'>
	var cbToggle = document.getElementById('qcbToggleUsers');

	function CreateNewQuickLink()
    {
		ShowNewQuicklinkPopup('QuickLinksDialogForm.aspx?Mode=Person', PageRefreshOnDialogClose);
    }

	 function EditQuickLinksMult() {
		cbAll = document.forms[0].qcbCheckedUsers;

		if (cbAll == null) {
			return;
		}

		var count = 0;
		var value = '';
		if (!cbAll.length) {
			if (cbAll.checked) {
				count++;
				value = cbAll.value;
			}
		}
		else {
			for (var i = 0; i < cbAll.length; i++) {
				if ((cbAll[i] != null) && (cbAll[i].checked)) {
					if (value == '') {
						value = cbAll[i].value;
					}
					else {
						value = value + ',' + cbAll[i].value;
					}
					count++;
				}
			}
		}

		if(count > 0)
		{
			var editUrl = 'QuickLinksDialogForm.aspx?Mode=Person\u0026LinkID=' + value;
			ShowNewQuicklinkPopup(editUrl, PageRefreshOnDialogClose);  
		}
		else if (count == 0) {
			alert('\uC120\uD0DD\uD55C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uB824\uBA74 \uD558\uB098 \uC774\uC0C1\uC758 \uD56D\uBAA9\uC744 \uC120\uD0DD\uD574\uC57C \uD569\uB2C8\uB2E4.');
		}
	}

	function DeleteQuickLinksMult() {
		cbAll = document.forms[0].qcbCheckedUsers;

		if (cbAll == null) {
			return;
		}

		var count = 0;
		var value = '';
		if (!cbAll.length) {
			if (cbAll.checked) {
				count++;
				value = cbAll.value;
			}
		}
		else {
			for (var i = 0; i < cbAll.length; i++) {
				if ((cbAll[i] != null) && (cbAll[i].checked)) {
					if (value == '') {
						value = cbAll.value;
					}
					else {
						value = value + ',' + cbAll.value;
					}
					count++;
				}
			}
		}

		var rv = false;
		if (count == 1)
			rv = confirm("\uC774 \uB3D9\uB8CC\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?");                
		else if (count > 1)
			rv = confirm("\uC774 \uB3D9\uB8CC\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?");                
		else if (count == 0)
			alert('\uC120\uD0DD\uD55C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uB824\uBA74 \uD558\uB098 \uC774\uC0C1\uC758 \uD56D\uBAA9\uC744 \uC120\uD0DD\uD574\uC57C \uD569\uB2C8\uB2E4.');

		if (rv) {
			document.forms[0].elements['linkID'].value = value;
			document.forms[0].elements['operation'].value =  "DeleteMultQuickLink";
			document.forms[0].submit();
		}
	}    
	function CopyQuickLinksToTagMult() {
		cbAll = document.forms[0].qcbCheckedUsers;

		if (!cbAll) {
			return;
		}

		var count = 0;
		var value = '';
		if (!cbAll.length) {
			if (cbAll.checked) {
				count++;
				value = cbAll.value;
			}
		}
		else {
			for (var i = 0; i < cbAll.length; i++) {
				if ((cbAll[i] != null) && (cbAll[i].checked)) {
					if (value == '') {
						value = cbAll.value;
					}
					else {
						value = value + ',' + cbAll.value;
					}
					count++;
				}
			}
		}

		if(count > 0)
		{
			document.forms[0].elements['linkID'].value = value;
			document.forms[0].elements['operation'].value =  "CopyToTagMultQuickLink";
			document.forms[0].submit();
		}
		else if (count == 0) {
			alert('\uC120\uD0DD\uD55C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uB824\uBA74 \uD558\uB098 \uC774\uC0C1\uC758 \uD56D\uBAA9\uC744 \uC120\uD0DD\uD574\uC57C \uD569\uB2C8\uB2E4.');
		}
	}    
	function ClearToggle()
	{
		cbToggle = document.getElementById('qcbToggleUsers');
		cbToggle.src = '/_layouts/images/unchecka.gif';
	}
	function Toggle()
	{
		cbToggle = document.getElementById('qcbToggleUsers');
		if (cbToggle.src.indexOf('unchecka.gif') > 0) {
			cbToggle.src = '/_layouts/images/checkall.gif';
			SetAll(true);
		}
		else {
			cbToggle.src = '/_layouts/images/unchecka.gif';
			SetAll(false);
		}
	}                
	function SetAll(bToggle)
	{
		cbAll = document.forms[0].qcbCheckedUsers;
		if (!cbAll.length) {
			cbAll.checked = bToggle;
		}
		else {
			for (i = 0; i < cbAll.length; i++) {
				cbAll[i].checked = bToggle;
			}
		}
	}



</script>

<div class="ms-profilepagecontent">
	<SPSWC:PageLevelError runat="server" id="PageLevelError1" />
	<SharePoint:DelegateControl runat="server" ControlId="ColleaguesLink1" Scope="Farm" />
	<Sharepoint:FormDigest runat="server" id="FormDigest" />
	<table class="s4-wpTopTable" border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
            <td rowspan="2">
                ccccccccccc
            </td>
			<td valign="top">
				<div WebPartID="00000000-0000-0000-0000-000000000000" HasPers="true" id="WebPartWPQ2" width="100%" class="noindex" OnlyForMePart="true" allowDelete="false" style="" >
				<div id="ctl00_PlaceHolderMain_ctl14">
					<table  id="ctl00_PlaceHolderMain_ctl14_SPS_QLMAC_MGMTs" class="ms-toolbar" width="100%" style="padding-left: 3px; padding-right: 5px;" cellspacing=0 cellpadding=2>
						<tr>
							<td>
								<table cellspacing=1 cellpadding=0 border=0>
									<tr>
										<td width=0  class="ms-toolbar">
											<a  id="ctl00$PlaceHolderMain$ctl14$ctl01_i" href="javascript:CreateNewQuickLink()" title=""><img  alt="add" src="/_layouts/images/addcolleagues_16.png" border=0 hspace=2 /></a>
										</td>
										<td  class="" width="100%" nowrap>
											<a id="ctl00$PlaceHolderMain$ctl14$ctl01" class="ms-toolbar" href="javascript:CreateNewQuickLink()" accesskey="N" title="">Add</a>
										</td>
									</tr>
								</table>
							</td>
							<td  class="ms-separator">|</td>
							<td>
								<table cellspacing=1 cellpadding=0 border=0>
									<tr>
										<td width=0  class="ms-toolbar">
											<a  id="ctl00$PlaceHolderMain$ctl14$EditMult_i" href="javascript:EditQuickLinksMult();" title=""><img  alt="Edit" src="/_layouts/images/managecolleagues_16.png" border=0 hspace=2 /></a>
										</td>
										<td  class="" width="100%" nowrap>
											<a id="ctl00$PlaceHolderMain$ctl14$EditMult" class="ms-toolbar" href="javascript:EditQuickLinksMult();" accesskey="M" title="Edit">Edit</a>
										</td>
									</tr>
								</table>
							</td>
							<td  class="ms-separator">|</td>
							<td>
								<table cellspacing=1 cellpadding=0 border=0>
									<tr>
										<td width=0  class="ms-toolbar">
											<a  id="ctl00$PlaceHolderMain$ctl14$DeleteMult_i" href="javascript:DeleteQuickLinksMult();" title=""><img  alt="Delete" src="/_layouts/images/removecolleague.png" border=0 hspace=2 /></a>
										</td>
										<td  class="" width="100%" nowrap>
											<a id="ctl00$PlaceHolderMain$ctl14$DeleteMult" class="ms-toolbar" href="javascript:DeleteQuickLinksMult();" accesskey="X">Delete</a>
										</td>
									</tr>
								</table>
							</td>
							<td  class="ms-separator">|</td>
							<td width="100%"  class="ms-separator"><img alt=""  src="/_layouts/images/trans.gif"></td>
							<td width="100%"></td>
						</tr>
					</table>
				</div>
			</td>
		</tr>
		<tr>
			<td valign="middle">
				<Square:Sq_People id="Sq_PeopleList" runat="server"></Square:Sq_People>
			</td>
		</tr>
	</table>
</div>
</asp:Content>



































